/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bolsavalorappclient;
import java.util.Properties;

/**
 *
 * @author ari
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Properties properties;
        properties = new Properties();
            //properties.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
            properties.put("java.naming.factory.url.pkgs",
                "org.jboss.naming rg.jnp.interfaces");
            
        if(args.length == 0) {    // Maquina y puerto donde esta el servidor
            properties.put("java.naming.provider.url", "jnp://127.0.0.1:1099");
        } else {
            properties.put("java.naming.provider.url", args[0].toString());
        }
        
        new LoginWindow(properties).setVisible(true);
    }
}
